-
Notifications
You must be signed in to change notification settings - Fork 710
use with compiler flags in key of cached project config #8819
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use with compiler flags in key of cached project config #8819
Conversation
return (configPath, distProjectFile "") | ||
return (configPath, distProjectFile "", | ||
(projectConfigHcFlavor, projectConfigHcPath, projectConfigHcPkg), | ||
progsearchpath, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this mean that if I run cabal
in a directory with a slightly modified PATH
, then it's going to be a complete cache miss on everything? Even it doesn't change what ghc
etc. gets picked? direnv
users will be sad if so.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My understanding is this will only be a cache miss on parsing and evaluating the conditionals in a project file, which should be pretty low-cost. But we certainly need to give this a workout to be sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me.
Lovely, let's set it for merge then. |
* use with compiler flags in key of cached project config * changelog --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
@mergify backport 3.10 |
✅ Backports have been created
|
* use with compiler flags in key of cached project config * changelog --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> (cherry picked from commit 9610438)
* use with compiler flags in key of cached project config * changelog --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> (cherry picked from commit 9610438)
use with compiler flags in key of cached project config (backport #8819)
Resolves #8772, #8699
adds more keys to the cache in rebuildProjectConfig, to ensure it gets rebuilt when the compiler may change.